package com.fishery.logistics.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 
 * </p>
 *
 * @author run
 * @since 2021-01-23
 */
@TableName("t_logistics_station")
@ApiModel(value="TLogisticsStation对象", description="物流站点")
public class Station implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "物流站点编号")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "物流站点地址")
    private String logisticsStationAddress;

    @ApiModelProperty(value = "物流站点经度")
    private String logisticsStationLongitude;

    @ApiModelProperty(value = "物流站点纬度")
    private String logisticsStationLatitude;

    @ApiModelProperty(value = "物流站点类型（0养殖基地、1个人、2企业、3加工厂、4冷库）")
    private Integer logisticsStationType;

    @ApiModelProperty("基地id")
    private String baseId;

    @ApiModelProperty("联系人电话")
    private String phoneNumber;

    @ApiModelProperty(value = "版本号（乐观锁）")
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;

    @ApiModelProperty(value = "逻辑删除（0未删除，1删除）")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLogisticsStationAddress() {
        return logisticsStationAddress;
    }

    public void setLogisticsStationAddress(String logisticsStationAddress) {
        this.logisticsStationAddress = logisticsStationAddress;
    }

    public String getLogisticsStationLongitude() {
        return logisticsStationLongitude;
    }

    public void setLogisticsStationLongitude(String logisticsStationLongitude) {
        this.logisticsStationLongitude = logisticsStationLongitude;
    }

    public String getLogisticsStationLatitude() {
        return logisticsStationLatitude;
    }

    public void setLogisticsStationLatitude(String logisticsStationLatitude) {
        this.logisticsStationLatitude = logisticsStationLatitude;
    }

    public Integer getLogisticsStationType() {
        return logisticsStationType;
    }

    public void setLogisticsStationType(Integer logisticsStationType) {
        this.logisticsStationType = logisticsStationType;
    }

    public String getBaseId() {
        return baseId;
    }

    public void setBaseId(String baseId) {
        this.baseId = baseId;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "Station{" +
                "id='" + id + '\'' +
                ", logisticsStationAddress='" + logisticsStationAddress + '\'' +
                ", logisticsStationLongitude='" + logisticsStationLongitude + '\'' +
                ", logisticsStationLatitude='" + logisticsStationLatitude + '\'' +
                ", logisticsStationType=" + logisticsStationType +
                ", baseId='" + baseId + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", version=" + version +
                ", isDeleted=" + isDeleted +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                '}';
    }
}
